package com.example.lancooznbk.view.activity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import com.example.lancooznbk.R;
import com.example.lancooznbk.view.base.BaseActivity;
import com.example.lancooznbk.view.fragment.TemplateSettingFragment;

/**
 * Created by tangminglong on 17/8/30.
 */

public class ReviewTemplateActivity extends BaseActivity {


    public static void launch(Context context){
     context.startActivity(new Intent(context,ReviewTemplateActivity.class));
        //((Activity)context).overridePendingTransition(R.anim.zoom_in_entry,R.anim.hold);
    }

    @Override
    public int attachLayoutRes() {
        return R.layout.activity_review_template;
    }

    @Override
    protected void initViews() {
        FragmentManager fm = getSupportFragmentManager();
        FragmentTransaction transaction = fm.beginTransaction();
        transaction.replace(R.id.fl_container,new TemplateSettingFragment());
        transaction.commit();

    }

    @Override
    protected void updateViews(boolean isRefresh) {

    }

    @Override
    public void finish() {
        super.finish();
        overridePendingTransition(R.anim.hold,R.anim.slide_out_bottom);
    }
}
